FROM python:3.8

COPY . /opt
WORKDIR /opt
ENV WORKER_NUM=4 TIMEOUT=30 KEEP_ALIVE=10
RUN mkdir -p /opt/logs && \
    pip install --no-cache-dir -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple
CMD sh run.sh
